const flowableReducer = (
  state = {
    jQueryLoaded: false,
    previewDepsLoaded: false,
    designDepsLoaded: false
  },
  action
) => {
  switch (action.type) {
    case 'SET_JQUERY_LOADED':
      return {
        ...state,
        jQueryLoaded: action.data
      }
    case 'SET_PREVIEW_DEPS_LOADED':
      return {
        ...state,
        previewDepsLoaded: action.data
      }
    case 'SET_DESIGN_DEPS_LOADED':
      return {
        ...state,
        designDepsLoaded: action.data
      }
    default:
      return state
  }
}

export default flowableReducer